package com.bweab.test;

import com.bweab.util.JDBCUtil;
//import org.junit.Test;

import java.sql.Connection;
import java.sql.SQLException;

public class testJDBCUtil {
    //获取数据库连接

//    @Test
    public void testGetConnection() throws SQLException {
        Connection connection = JDBCUtil.getConnection();
        System.out.println(connection);
    }
//    @Test
    public void testCloseConnection() throws SQLException {
        //先获取连接
        Connection connection = JDBCUtil.getConnection();
        System.out.println(connection);
        JDBCUtil.closeConnection(connection);
    }
}
